//定义PersonInterface 接口
export interface PersonInterface {
    id: number;
    name: string;
    age?: number; //定义的age 可有可无
}

//自定义类型
//写法一
// export type Persons = Array<PersonInterface>
//写法二
export type Persons = PersonInterface[]
